﻿using System;
using System.Text;
using System.Collections.Generic;
using NUnit.Framework;

namespace KnowledgeDiscovery
{
    [TestFixture]
    public class ReflectionTests
    {
        #region Setup and Teardown methods
        [TestFixtureSetUp]
        public void BeforeAnyTest()
        {           
        }

        [TestFixtureTearDown]
        public void AfterAllTests()
        {            
        }

        [SetUp]
        public void BeforeEachTest()
        {
        }

        [TearDown]
        public void AfterEachTest()
        {
        }
        #endregion Setup and teardown methods

        [Test]
        public void ShouldFindDependenciesWhenCustomAttributesNotLoadedForAssemblies()
        {
            var dependencies = System.Reflection.Assembly.GetExecutingAssembly().GetReferencedAssemblies();

            foreach (var assemblyName in dependencies)
            {
                System.Reflection.Assembly.Load(assemblyName);                
            }

            Assert.That(dependencies, Is.Not.Null);
        }
    }
}
